function selectAll(){
	var delid = document.getElementsByName('delid[]');
	for(var i=0;i<delid.length;i++){
		delid[i].checked = true;
		//obj.delid[i].value;
	}

}

function confirmd() {  
    var msg = "您真的确定要删除吗？请确认！";  
    if (confirm(msg)==true){  
        return true;  
    }else{  
        return false;  
    }  
}  

function delete_users(){
	
	
		var obj2=document.getElementsByName("delid[]");

		for(var i=0;i<obj2.length;i++){
			if(obj2[i].checked==true){
			temp=1;
			break;
			}else{
			temp=0;
			}
		}
		if(temp==0){alert("请选择!");return false;}
		else{
			
			var msg = "您真的确定要删除吗？请确认！";  
		    if (confirm(msg)==true){ 
		    	var str = "";
				var  delid = document.getElementsByName('delid[]');
				for(var i=0;i<delid.length;i++){
					if(delid[i].checked == true){
						//arr[i]=obj.delid[i].value;
						str +=delid[i].value+"|";
					}
				}
				//window.Location='delete_uid.php?id='+str;
			    window.location.href="delete_uid.php?id="+str; 
		        return true;  
		    }else{  
		        return false;  
		    }  
		  
		}
		

		    
	
}
function unselectAll(){
	var delid = document.getElementsByName('delid[]');
	for (var i=0;i<delid.length;i++){
		
			if (delid[i].checked==true) delid[i].checked = false;
			else delid[i].checked = true;
		
	}
}

function link(){
    document.getElementById("fom").action="register.php";
   document.getElementById("fom").submit();
}